huggingface-hub 0.31.0rc0__py3-none-any.whl → 1.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huggingface_hub/__init__.py +145 -46
- huggingface_hub/_commit_api.py +168 -119
- huggingface_hub/_commit_scheduler.py +15 -15
- huggingface_hub/_inference_endpoints.py +15 -12
- huggingface_hub/_jobs_api.py +301 -0
- huggingface_hub/_local_folder.py +18 -3
- huggingface_hub/_login.py +31 -63
- huggingface_hub/_oauth.py +460 -0
- huggingface_hub/_snapshot_download.py +239 -80
- huggingface_hub/_space_api.py +5 -5
- huggingface_hub/_tensorboard_logger.py +15 -19
- huggingface_hub/_upload_large_folder.py +172 -76
- huggingface_hub/_webhooks_payload.py +3 -3
- huggingface_hub/_webhooks_server.py +13 -25
- huggingface_hub/{commands → cli}/__init__.py +1 -15
- huggingface_hub/cli/_cli_utils.py +173 -0
- huggingface_hub/cli/auth.py +147 -0
- huggingface_hub/cli/cache.py +841 -0
- huggingface_hub/cli/download.py +189 -0
- huggingface_hub/cli/hf.py +60 -0
- huggingface_hub/cli/inference_endpoints.py +377 -0
- huggingface_hub/cli/jobs.py +772 -0
- huggingface_hub/cli/lfs.py +175 -0
- huggingface_hub/cli/repo.py +315 -0
- huggingface_hub/cli/repo_files.py +94 -0
- huggingface_hub/{commands/env.py → cli/system.py} +10 -13
- huggingface_hub/cli/upload.py +294 -0
- huggingface_hub/cli/upload_large_folder.py +117 -0
- huggingface_hub/community.py +20 -12
- huggingface_hub/constants.py +38 -53
- huggingface_hub/dataclasses.py +609 -0
- huggingface_hub/errors.py +80 -30
- huggingface_hub/fastai_utils.py +30 -41
- huggingface_hub/file_download.py +435 -351
- huggingface_hub/hf_api.py +2050 -1124
- huggingface_hub/hf_file_system.py +269 -152
- huggingface_hub/hub_mixin.py +43 -63
- huggingface_hub/inference/_client.py +347 -434
- huggingface_hub/inference/_common.py +133 -121
- huggingface_hub/inference/_generated/_async_client.py +397 -541
- huggingface_hub/inference/_generated/types/__init__.py +5 -1
- huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +3 -3
- huggingface_hub/inference/_generated/types/base.py +10 -7
- huggingface_hub/inference/_generated/types/chat_completion.py +59 -23
- huggingface_hub/inference/_generated/types/depth_estimation.py +2 -2
- huggingface_hub/inference/_generated/types/document_question_answering.py +2 -2
- huggingface_hub/inference/_generated/types/feature_extraction.py +2 -2
- huggingface_hub/inference/_generated/types/fill_mask.py +2 -2
- huggingface_hub/inference/_generated/types/image_to_image.py +6 -2
- huggingface_hub/inference/_generated/types/image_to_video.py +60 -0
- huggingface_hub/inference/_generated/types/sentence_similarity.py +3 -3
- huggingface_hub/inference/_generated/types/summarization.py +2 -2
- huggingface_hub/inference/_generated/types/table_question_answering.py +5 -5
- huggingface_hub/inference/_generated/types/text2text_generation.py +2 -2
- huggingface_hub/inference/_generated/types/text_generation.py +10 -10
- huggingface_hub/inference/_generated/types/text_to_video.py +2 -2
- huggingface_hub/inference/_generated/types/token_classification.py +2 -2
- huggingface_hub/inference/_generated/types/translation.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_classification.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +1 -3
- huggingface_hub/inference/_mcp/__init__.py +0 -0
- huggingface_hub/inference/_mcp/_cli_hacks.py +88 -0
- huggingface_hub/inference/_mcp/agent.py +100 -0
- huggingface_hub/inference/_mcp/cli.py +247 -0
- huggingface_hub/inference/_mcp/constants.py +81 -0
- huggingface_hub/inference/_mcp/mcp_client.py +395 -0
- huggingface_hub/inference/_mcp/types.py +45 -0
- huggingface_hub/inference/_mcp/utils.py +128 -0
- huggingface_hub/inference/_providers/__init__.py +82 -7
- huggingface_hub/inference/_providers/_common.py +129 -27
- huggingface_hub/inference/_providers/black_forest_labs.py +6 -6
- huggingface_hub/inference/_providers/cerebras.py +1 -1
- huggingface_hub/inference/_providers/clarifai.py +13 -0
- huggingface_hub/inference/_providers/cohere.py +20 -3
- huggingface_hub/inference/_providers/fal_ai.py +183 -56
- huggingface_hub/inference/_providers/featherless_ai.py +38 -0
- huggingface_hub/inference/_providers/fireworks_ai.py +18 -0
- huggingface_hub/inference/_providers/groq.py +9 -0
- huggingface_hub/inference/_providers/hf_inference.py +69 -30
- huggingface_hub/inference/_providers/hyperbolic.py +4 -4
- huggingface_hub/inference/_providers/nebius.py +33 -5
- huggingface_hub/inference/_providers/novita.py +5 -5
- huggingface_hub/inference/_providers/nscale.py +44 -0
- huggingface_hub/inference/_providers/openai.py +3 -1
- huggingface_hub/inference/_providers/publicai.py +6 -0
- huggingface_hub/inference/_providers/replicate.py +31 -13
- huggingface_hub/inference/_providers/sambanova.py +18 -4
- huggingface_hub/inference/_providers/scaleway.py +28 -0
- huggingface_hub/inference/_providers/together.py +20 -5
- huggingface_hub/inference/_providers/wavespeed.py +138 -0
- huggingface_hub/inference/_providers/zai_org.py +17 -0
- huggingface_hub/lfs.py +33 -100
- huggingface_hub/repocard.py +34 -38
- huggingface_hub/repocard_data.py +57 -57
- huggingface_hub/serialization/__init__.py +0 -1
- huggingface_hub/serialization/_base.py +12 -15
- huggingface_hub/serialization/_dduf.py +8 -8
- huggingface_hub/serialization/_torch.py +69 -69
- huggingface_hub/utils/__init__.py +19 -8
- huggingface_hub/utils/_auth.py +7 -7
- huggingface_hub/utils/_cache_manager.py +92 -147
- huggingface_hub/utils/_chunk_utils.py +2 -3
- huggingface_hub/utils/_deprecation.py +1 -1
- huggingface_hub/utils/_dotenv.py +55 -0
- huggingface_hub/utils/_experimental.py +7 -5
- huggingface_hub/utils/_fixes.py +0 -10
- huggingface_hub/utils/_git_credential.py +5 -5
- huggingface_hub/utils/_headers.py +8 -30
- huggingface_hub/utils/_http.py +398 -239
- huggingface_hub/utils/_pagination.py +4 -4
- huggingface_hub/utils/_parsing.py +98 -0
- huggingface_hub/utils/_paths.py +5 -5
- huggingface_hub/utils/_runtime.py +61 -24
- huggingface_hub/utils/_safetensors.py +21 -21
- huggingface_hub/utils/_subprocess.py +9 -9
- huggingface_hub/utils/_telemetry.py +4 -4
- huggingface_hub/{commands/_cli_utils.py → utils/_terminal.py} +4 -4
- huggingface_hub/utils/_typing.py +25 -5
- huggingface_hub/utils/_validators.py +55 -74
- huggingface_hub/utils/_verification.py +167 -0
- huggingface_hub/utils/_xet.py +64 -17
- huggingface_hub/utils/_xet_progress_reporting.py +162 -0
- huggingface_hub/utils/insecure_hashlib.py +3 -5
- huggingface_hub/utils/logging.py +8 -11
- huggingface_hub/utils/tqdm.py +5 -4
- {huggingface_hub-0.31.0rc0.dist-info → huggingface_hub-1.1.3.dist-info}/METADATA +94 -85
- huggingface_hub-1.1.3.dist-info/RECORD +155 -0
- {huggingface_hub-0.31.0rc0.dist-info → huggingface_hub-1.1.3.dist-info}/WHEEL +1 -1
- huggingface_hub-1.1.3.dist-info/entry_points.txt +6 -0
- huggingface_hub/commands/delete_cache.py +0 -474
- huggingface_hub/commands/download.py +0 -200
- huggingface_hub/commands/huggingface_cli.py +0 -61
- huggingface_hub/commands/lfs.py +0 -200
- huggingface_hub/commands/repo_files.py +0 -128
- huggingface_hub/commands/scan_cache.py +0 -181
- huggingface_hub/commands/tag.py +0 -159
- huggingface_hub/commands/upload.py +0 -314
- huggingface_hub/commands/upload_large_folder.py +0 -129
- huggingface_hub/commands/user.py +0 -304
- huggingface_hub/commands/version.py +0 -37
- huggingface_hub/inference_api.py +0 -217
- huggingface_hub/keras_mixin.py +0 -500
- huggingface_hub/repository.py +0 -1477
- huggingface_hub/serialization/_tensorflow.py +0 -95
- huggingface_hub/utils/_hf_folder.py +0 -68
- huggingface_hub-0.31.0rc0.dist-info/RECORD +0 -135
- huggingface_hub-0.31.0rc0.dist-info/entry_points.txt +0 -6
- {huggingface_hub-0.31.0rc0.dist-info → huggingface_hub-1.1.3.dist-info/licenses}/LICENSE +0 -0
- {huggingface_hub-0.31.0rc0.dist-info → huggingface_hub-1.1.3.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "
|
|
49
|
+
__version__ = "1.1.3"
|
|
50
50
|
|
|
51
51
|
# Alphabetical order of definitions is ensured in tests
|
|
52
52
|
# WARNING: any comment added in this dictionary definition will be lost when
|
|
@@ -62,6 +62,12 @@ _SUBMOD_ATTRS = {
|
|
|
62
62
|
"InferenceEndpointTimeoutError",
|
|
63
63
|
"InferenceEndpointType",
|
|
64
64
|
],
|
|
65
|
+
"_jobs_api": [
|
|
66
|
+
"JobInfo",
|
|
67
|
+
"JobOwner",
|
|
68
|
+
"JobStage",
|
|
69
|
+
"JobStatus",
|
|
70
|
+
],
|
|
65
71
|
"_login": [
|
|
66
72
|
"auth_list",
|
|
67
73
|
"auth_switch",
|
|
@@ -70,6 +76,13 @@ _SUBMOD_ATTRS = {
|
|
|
70
76
|
"logout",
|
|
71
77
|
"notebook_login",
|
|
72
78
|
],
|
|
79
|
+
"_oauth": [
|
|
80
|
+
"OAuthInfo",
|
|
81
|
+
"OAuthOrgInfo",
|
|
82
|
+
"OAuthUserInfo",
|
|
83
|
+
"attach_huggingface_oauth",
|
|
84
|
+
"parse_huggingface_oauth",
|
|
85
|
+
],
|
|
73
86
|
"_snapshot_download": [
|
|
74
87
|
"snapshot_download",
|
|
75
88
|
],
|
|
@@ -98,6 +111,9 @@ _SUBMOD_ATTRS = {
|
|
|
98
111
|
"WebhooksServer",
|
|
99
112
|
"webhook_endpoint",
|
|
100
113
|
],
|
|
114
|
+
"cli._cli_utils": [
|
|
115
|
+
"typer_factory",
|
|
116
|
+
],
|
|
101
117
|
"community": [
|
|
102
118
|
"Discussion",
|
|
103
119
|
"DiscussionComment",
|
|
@@ -125,6 +141,7 @@ _SUBMOD_ATTRS = {
|
|
|
125
141
|
"push_to_hub_fastai",
|
|
126
142
|
],
|
|
127
143
|
"file_download": [
|
|
144
|
+
"DryRunFileInfo",
|
|
128
145
|
"HfFileMetadata",
|
|
129
146
|
"_CACHED_NO_EXIST",
|
|
130
147
|
"get_hf_file_metadata",
|
|
@@ -146,6 +163,7 @@ _SUBMOD_ATTRS = {
|
|
|
146
163
|
"GitRefs",
|
|
147
164
|
"HfApi",
|
|
148
165
|
"ModelInfo",
|
|
166
|
+
"Organization",
|
|
149
167
|
"RepoUrl",
|
|
150
168
|
"SpaceInfo",
|
|
151
169
|
"User",
|
|
@@ -158,6 +176,7 @@ _SUBMOD_ATTRS = {
|
|
|
158
176
|
"add_space_variable",
|
|
159
177
|
"auth_check",
|
|
160
178
|
"cancel_access_request",
|
|
179
|
+
"cancel_job",
|
|
161
180
|
"change_discussion_status",
|
|
162
181
|
"comment_discussion",
|
|
163
182
|
"create_branch",
|
|
@@ -168,6 +187,8 @@ _SUBMOD_ATTRS = {
|
|
|
168
187
|
"create_inference_endpoint_from_catalog",
|
|
169
188
|
"create_pull_request",
|
|
170
189
|
"create_repo",
|
|
190
|
+
"create_scheduled_job",
|
|
191
|
+
"create_scheduled_uv_job",
|
|
171
192
|
"create_tag",
|
|
172
193
|
"create_webhook",
|
|
173
194
|
"dataset_info",
|
|
@@ -178,6 +199,7 @@ _SUBMOD_ATTRS = {
|
|
|
178
199
|
"delete_folder",
|
|
179
200
|
"delete_inference_endpoint",
|
|
180
201
|
"delete_repo",
|
|
202
|
+
"delete_scheduled_job",
|
|
181
203
|
"delete_space_secret",
|
|
182
204
|
"delete_space_storage",
|
|
183
205
|
"delete_space_variable",
|
|
@@ -187,6 +209,7 @@ _SUBMOD_ATTRS = {
|
|
|
187
209
|
"duplicate_space",
|
|
188
210
|
"edit_discussion_comment",
|
|
189
211
|
"enable_webhook",
|
|
212
|
+
"fetch_job_logs",
|
|
190
213
|
"file_exists",
|
|
191
214
|
"get_collection",
|
|
192
215
|
"get_dataset_tags",
|
|
@@ -194,23 +217,27 @@ _SUBMOD_ATTRS = {
|
|
|
194
217
|
"get_full_repo_name",
|
|
195
218
|
"get_inference_endpoint",
|
|
196
219
|
"get_model_tags",
|
|
220
|
+
"get_organization_overview",
|
|
197
221
|
"get_paths_info",
|
|
198
222
|
"get_repo_discussions",
|
|
199
223
|
"get_safetensors_metadata",
|
|
200
224
|
"get_space_runtime",
|
|
201
225
|
"get_space_variables",
|
|
202
|
-
"get_token_permission",
|
|
203
226
|
"get_user_overview",
|
|
204
227
|
"get_webhook",
|
|
205
228
|
"grant_access",
|
|
229
|
+
"inspect_job",
|
|
230
|
+
"inspect_scheduled_job",
|
|
206
231
|
"list_accepted_access_requests",
|
|
207
232
|
"list_collections",
|
|
208
233
|
"list_datasets",
|
|
209
234
|
"list_inference_catalog",
|
|
210
235
|
"list_inference_endpoints",
|
|
236
|
+
"list_jobs",
|
|
211
237
|
"list_lfs_files",
|
|
212
238
|
"list_liked_repos",
|
|
213
239
|
"list_models",
|
|
240
|
+
"list_organization_followers",
|
|
214
241
|
"list_organization_members",
|
|
215
242
|
"list_papers",
|
|
216
243
|
"list_pending_access_requests",
|
|
@@ -242,22 +269,26 @@ _SUBMOD_ATTRS = {
|
|
|
242
269
|
"request_space_storage",
|
|
243
270
|
"restart_space",
|
|
244
271
|
"resume_inference_endpoint",
|
|
272
|
+
"resume_scheduled_job",
|
|
245
273
|
"revision_exists",
|
|
246
274
|
"run_as_future",
|
|
275
|
+
"run_job",
|
|
276
|
+
"run_uv_job",
|
|
247
277
|
"scale_to_zero_inference_endpoint",
|
|
248
278
|
"set_space_sleep_time",
|
|
249
279
|
"space_info",
|
|
250
280
|
"super_squash_history",
|
|
281
|
+
"suspend_scheduled_job",
|
|
251
282
|
"unlike",
|
|
252
283
|
"update_collection_item",
|
|
253
284
|
"update_collection_metadata",
|
|
254
285
|
"update_inference_endpoint",
|
|
255
286
|
"update_repo_settings",
|
|
256
|
-
"update_repo_visibility",
|
|
257
287
|
"update_webhook",
|
|
258
288
|
"upload_file",
|
|
259
289
|
"upload_folder",
|
|
260
290
|
"upload_large_folder",
|
|
291
|
+
"verify_repo_checksums",
|
|
261
292
|
"whoami",
|
|
262
293
|
],
|
|
263
294
|
"hf_file_system": [
|
|
@@ -294,10 +325,13 @@ _SUBMOD_ATTRS = {
|
|
|
294
325
|
"ChatCompletionInputFunctionDefinition",
|
|
295
326
|
"ChatCompletionInputFunctionName",
|
|
296
327
|
"ChatCompletionInputGrammarType",
|
|
297
|
-
"
|
|
328
|
+
"ChatCompletionInputJSONSchema",
|
|
298
329
|
"ChatCompletionInputMessage",
|
|
299
330
|
"ChatCompletionInputMessageChunk",
|
|
300
331
|
"ChatCompletionInputMessageChunkType",
|
|
332
|
+
"ChatCompletionInputResponseFormatJSONObject",
|
|
333
|
+
"ChatCompletionInputResponseFormatJSONSchema",
|
|
334
|
+
"ChatCompletionInputResponseFormatText",
|
|
301
335
|
"ChatCompletionInputStreamOptions",
|
|
302
336
|
"ChatCompletionInputTool",
|
|
303
337
|
"ChatCompletionInputToolCall",
|
|
@@ -350,6 +384,10 @@ _SUBMOD_ATTRS = {
|
|
|
350
384
|
"ImageToTextInput",
|
|
351
385
|
"ImageToTextOutput",
|
|
352
386
|
"ImageToTextParameters",
|
|
387
|
+
"ImageToVideoInput",
|
|
388
|
+
"ImageToVideoOutput",
|
|
389
|
+
"ImageToVideoParameters",
|
|
390
|
+
"ImageToVideoTargetSize",
|
|
353
391
|
"ObjectDetectionBoundingBox",
|
|
354
392
|
"ObjectDetectionInput",
|
|
355
393
|
"ObjectDetectionOutputElement",
|
|
@@ -433,14 +471,11 @@ _SUBMOD_ATTRS = {
|
|
|
433
471
|
"ZeroShotObjectDetectionOutputElement",
|
|
434
472
|
"ZeroShotObjectDetectionParameters",
|
|
435
473
|
],
|
|
436
|
-
"
|
|
437
|
-
"
|
|
474
|
+
"inference._mcp.agent": [
|
|
475
|
+
"Agent",
|
|
438
476
|
],
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"from_pretrained_keras",
|
|
442
|
-
"push_to_hub_keras",
|
|
443
|
-
"save_pretrained_keras",
|
|
477
|
+
"inference._mcp.mcp_client": [
|
|
478
|
+
"MCPClient",
|
|
444
479
|
],
|
|
445
480
|
"repocard": [
|
|
446
481
|
"DatasetCard",
|
|
@@ -459,12 +494,8 @@ _SUBMOD_ATTRS = {
|
|
|
459
494
|
"ModelCardData",
|
|
460
495
|
"SpaceCardData",
|
|
461
496
|
],
|
|
462
|
-
"repository": [
|
|
463
|
-
"Repository",
|
|
464
|
-
],
|
|
465
497
|
"serialization": [
|
|
466
498
|
"StateDictSplit",
|
|
467
|
-
"get_tf_storage_size",
|
|
468
499
|
"get_torch_storage_id",
|
|
469
500
|
"get_torch_storage_size",
|
|
470
501
|
"load_state_dict_from_file",
|
|
@@ -472,7 +503,6 @@ _SUBMOD_ATTRS = {
|
|
|
472
503
|
"save_torch_model",
|
|
473
504
|
"save_torch_state_dict",
|
|
474
505
|
"split_state_dict_into_shards_factory",
|
|
475
|
-
"split_tf_state_dict_into_shards",
|
|
476
506
|
"split_torch_state_dict_into_shards",
|
|
477
507
|
],
|
|
478
508
|
"serialization._dduf": [
|
|
@@ -482,6 +512,8 @@ _SUBMOD_ATTRS = {
|
|
|
482
512
|
"read_dduf_file",
|
|
483
513
|
],
|
|
484
514
|
"utils": [
|
|
515
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
516
|
+
"CLIENT_FACTORY_T",
|
|
485
517
|
"CacheNotFound",
|
|
486
518
|
"CachedFileInfo",
|
|
487
519
|
"CachedRepoInfo",
|
|
@@ -489,14 +521,17 @@ _SUBMOD_ATTRS = {
|
|
|
489
521
|
"CorruptedCacheException",
|
|
490
522
|
"DeleteCacheStrategy",
|
|
491
523
|
"HFCacheInfo",
|
|
492
|
-
"HfFolder",
|
|
493
524
|
"cached_assets_path",
|
|
494
|
-
"
|
|
525
|
+
"close_session",
|
|
495
526
|
"dump_environment_info",
|
|
527
|
+
"get_async_session",
|
|
496
528
|
"get_session",
|
|
497
529
|
"get_token",
|
|
530
|
+
"hf_raise_for_status",
|
|
498
531
|
"logging",
|
|
499
532
|
"scan_cache_dir",
|
|
533
|
+
"set_async_client_factory",
|
|
534
|
+
"set_client_factory",
|
|
500
535
|
],
|
|
501
536
|
}
|
|
502
537
|
|
|
@@ -512,6 +547,8 @@ _SUBMOD_ATTRS = {
|
|
|
512
547
|
# ```
|
|
513
548
|
|
|
514
549
|
__all__ = [
|
|
550
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
551
|
+
"Agent",
|
|
515
552
|
"AsyncInferenceClient",
|
|
516
553
|
"AudioClassificationInput",
|
|
517
554
|
"AudioClassificationOutputElement",
|
|
@@ -525,6 +562,7 @@ __all__ = [
|
|
|
525
562
|
"AutomaticSpeechRecognitionOutput",
|
|
526
563
|
"AutomaticSpeechRecognitionOutputChunk",
|
|
527
564
|
"AutomaticSpeechRecognitionParameters",
|
|
565
|
+
"CLIENT_FACTORY_T",
|
|
528
566
|
"CONFIG_NAME",
|
|
529
567
|
"CacheNotFound",
|
|
530
568
|
"CachedFileInfo",
|
|
@@ -535,10 +573,13 @@ __all__ = [
|
|
|
535
573
|
"ChatCompletionInputFunctionDefinition",
|
|
536
574
|
"ChatCompletionInputFunctionName",
|
|
537
575
|
"ChatCompletionInputGrammarType",
|
|
538
|
-
"
|
|
576
|
+
"ChatCompletionInputJSONSchema",
|
|
539
577
|
"ChatCompletionInputMessage",
|
|
540
578
|
"ChatCompletionInputMessageChunk",
|
|
541
579
|
"ChatCompletionInputMessageChunkType",
|
|
580
|
+
"ChatCompletionInputResponseFormatJSONObject",
|
|
581
|
+
"ChatCompletionInputResponseFormatJSONSchema",
|
|
582
|
+
"ChatCompletionInputResponseFormatText",
|
|
542
583
|
"ChatCompletionInputStreamOptions",
|
|
543
584
|
"ChatCompletionInputTool",
|
|
544
585
|
"ChatCompletionInputToolCall",
|
|
@@ -590,6 +631,7 @@ __all__ = [
|
|
|
590
631
|
"DocumentQuestionAnsweringInputData",
|
|
591
632
|
"DocumentQuestionAnsweringOutputElement",
|
|
592
633
|
"DocumentQuestionAnsweringParameters",
|
|
634
|
+
"DryRunFileInfo",
|
|
593
635
|
"EvalResult",
|
|
594
636
|
"FLAX_WEIGHTS_NAME",
|
|
595
637
|
"FeatureExtractionInput",
|
|
@@ -610,7 +652,6 @@ __all__ = [
|
|
|
610
652
|
"HfFileSystemFile",
|
|
611
653
|
"HfFileSystemResolvedPath",
|
|
612
654
|
"HfFileSystemStreamFile",
|
|
613
|
-
"HfFolder",
|
|
614
655
|
"ImageClassificationInput",
|
|
615
656
|
"ImageClassificationOutputElement",
|
|
616
657
|
"ImageClassificationOutputTransform",
|
|
@@ -628,7 +669,10 @@ __all__ = [
|
|
|
628
669
|
"ImageToTextInput",
|
|
629
670
|
"ImageToTextOutput",
|
|
630
671
|
"ImageToTextParameters",
|
|
631
|
-
"
|
|
672
|
+
"ImageToVideoInput",
|
|
673
|
+
"ImageToVideoOutput",
|
|
674
|
+
"ImageToVideoParameters",
|
|
675
|
+
"ImageToVideoTargetSize",
|
|
632
676
|
"InferenceClient",
|
|
633
677
|
"InferenceEndpoint",
|
|
634
678
|
"InferenceEndpointError",
|
|
@@ -636,15 +680,23 @@ __all__ = [
|
|
|
636
680
|
"InferenceEndpointTimeoutError",
|
|
637
681
|
"InferenceEndpointType",
|
|
638
682
|
"InferenceTimeoutError",
|
|
639
|
-
"
|
|
683
|
+
"JobInfo",
|
|
684
|
+
"JobOwner",
|
|
685
|
+
"JobStage",
|
|
686
|
+
"JobStatus",
|
|
687
|
+
"MCPClient",
|
|
640
688
|
"ModelCard",
|
|
641
689
|
"ModelCardData",
|
|
642
690
|
"ModelHubMixin",
|
|
643
691
|
"ModelInfo",
|
|
692
|
+
"OAuthInfo",
|
|
693
|
+
"OAuthOrgInfo",
|
|
694
|
+
"OAuthUserInfo",
|
|
644
695
|
"ObjectDetectionBoundingBox",
|
|
645
696
|
"ObjectDetectionInput",
|
|
646
697
|
"ObjectDetectionOutputElement",
|
|
647
698
|
"ObjectDetectionParameters",
|
|
699
|
+
"Organization",
|
|
648
700
|
"PYTORCH_WEIGHTS_NAME",
|
|
649
701
|
"Padding",
|
|
650
702
|
"PyTorchModelHubMixin",
|
|
@@ -657,7 +709,6 @@ __all__ = [
|
|
|
657
709
|
"REPO_TYPE_SPACE",
|
|
658
710
|
"RepoCard",
|
|
659
711
|
"RepoUrl",
|
|
660
|
-
"Repository",
|
|
661
712
|
"SentenceSimilarityInput",
|
|
662
713
|
"SentenceSimilarityInputData",
|
|
663
714
|
"SpaceCard",
|
|
@@ -762,14 +813,16 @@ __all__ = [
|
|
|
762
813
|
"add_collection_item",
|
|
763
814
|
"add_space_secret",
|
|
764
815
|
"add_space_variable",
|
|
816
|
+
"attach_huggingface_oauth",
|
|
765
817
|
"auth_check",
|
|
766
818
|
"auth_list",
|
|
767
819
|
"auth_switch",
|
|
768
820
|
"cached_assets_path",
|
|
769
821
|
"cancel_access_request",
|
|
822
|
+
"cancel_job",
|
|
770
823
|
"change_discussion_status",
|
|
824
|
+
"close_session",
|
|
771
825
|
"comment_discussion",
|
|
772
|
-
"configure_http_backend",
|
|
773
826
|
"create_branch",
|
|
774
827
|
"create_collection",
|
|
775
828
|
"create_commit",
|
|
@@ -778,6 +831,8 @@ __all__ = [
|
|
|
778
831
|
"create_inference_endpoint_from_catalog",
|
|
779
832
|
"create_pull_request",
|
|
780
833
|
"create_repo",
|
|
834
|
+
"create_scheduled_job",
|
|
835
|
+
"create_scheduled_uv_job",
|
|
781
836
|
"create_tag",
|
|
782
837
|
"create_webhook",
|
|
783
838
|
"dataset_info",
|
|
@@ -788,6 +843,7 @@ __all__ = [
|
|
|
788
843
|
"delete_folder",
|
|
789
844
|
"delete_inference_endpoint",
|
|
790
845
|
"delete_repo",
|
|
846
|
+
"delete_scheduled_job",
|
|
791
847
|
"delete_space_secret",
|
|
792
848
|
"delete_space_storage",
|
|
793
849
|
"delete_space_variable",
|
|
@@ -800,9 +856,10 @@ __all__ = [
|
|
|
800
856
|
"enable_webhook",
|
|
801
857
|
"export_entries_as_dduf",
|
|
802
858
|
"export_folder_as_dduf",
|
|
859
|
+
"fetch_job_logs",
|
|
803
860
|
"file_exists",
|
|
804
861
|
"from_pretrained_fastai",
|
|
805
|
-
"
|
|
862
|
+
"get_async_session",
|
|
806
863
|
"get_collection",
|
|
807
864
|
"get_dataset_tags",
|
|
808
865
|
"get_discussion_details",
|
|
@@ -810,15 +867,14 @@ __all__ = [
|
|
|
810
867
|
"get_hf_file_metadata",
|
|
811
868
|
"get_inference_endpoint",
|
|
812
869
|
"get_model_tags",
|
|
870
|
+
"get_organization_overview",
|
|
813
871
|
"get_paths_info",
|
|
814
872
|
"get_repo_discussions",
|
|
815
873
|
"get_safetensors_metadata",
|
|
816
874
|
"get_session",
|
|
817
875
|
"get_space_runtime",
|
|
818
876
|
"get_space_variables",
|
|
819
|
-
"get_tf_storage_size",
|
|
820
877
|
"get_token",
|
|
821
|
-
"get_token_permission",
|
|
822
878
|
"get_torch_storage_id",
|
|
823
879
|
"get_torch_storage_size",
|
|
824
880
|
"get_user_overview",
|
|
@@ -826,15 +882,20 @@ __all__ = [
|
|
|
826
882
|
"grant_access",
|
|
827
883
|
"hf_hub_download",
|
|
828
884
|
"hf_hub_url",
|
|
885
|
+
"hf_raise_for_status",
|
|
886
|
+
"inspect_job",
|
|
887
|
+
"inspect_scheduled_job",
|
|
829
888
|
"interpreter_login",
|
|
830
889
|
"list_accepted_access_requests",
|
|
831
890
|
"list_collections",
|
|
832
891
|
"list_datasets",
|
|
833
892
|
"list_inference_catalog",
|
|
834
893
|
"list_inference_endpoints",
|
|
894
|
+
"list_jobs",
|
|
835
895
|
"list_lfs_files",
|
|
836
896
|
"list_liked_repos",
|
|
837
897
|
"list_models",
|
|
898
|
+
"list_organization_followers",
|
|
838
899
|
"list_organization_members",
|
|
839
900
|
"list_papers",
|
|
840
901
|
"list_pending_access_requests",
|
|
@@ -862,13 +923,13 @@ __all__ = [
|
|
|
862
923
|
"move_repo",
|
|
863
924
|
"notebook_login",
|
|
864
925
|
"paper_info",
|
|
926
|
+
"parse_huggingface_oauth",
|
|
865
927
|
"parse_safetensors_file_metadata",
|
|
866
928
|
"pause_inference_endpoint",
|
|
867
929
|
"pause_space",
|
|
868
930
|
"permanently_delete_lfs_files",
|
|
869
931
|
"preupload_lfs_files",
|
|
870
932
|
"push_to_hub_fastai",
|
|
871
|
-
"push_to_hub_keras",
|
|
872
933
|
"read_dduf_file",
|
|
873
934
|
"reject_access_request",
|
|
874
935
|
"rename_discussion",
|
|
@@ -879,31 +940,36 @@ __all__ = [
|
|
|
879
940
|
"request_space_storage",
|
|
880
941
|
"restart_space",
|
|
881
942
|
"resume_inference_endpoint",
|
|
943
|
+
"resume_scheduled_job",
|
|
882
944
|
"revision_exists",
|
|
883
945
|
"run_as_future",
|
|
884
|
-
"
|
|
946
|
+
"run_job",
|
|
947
|
+
"run_uv_job",
|
|
885
948
|
"save_torch_model",
|
|
886
949
|
"save_torch_state_dict",
|
|
887
950
|
"scale_to_zero_inference_endpoint",
|
|
888
951
|
"scan_cache_dir",
|
|
952
|
+
"set_async_client_factory",
|
|
953
|
+
"set_client_factory",
|
|
889
954
|
"set_space_sleep_time",
|
|
890
955
|
"snapshot_download",
|
|
891
956
|
"space_info",
|
|
892
957
|
"split_state_dict_into_shards_factory",
|
|
893
|
-
"split_tf_state_dict_into_shards",
|
|
894
958
|
"split_torch_state_dict_into_shards",
|
|
895
959
|
"super_squash_history",
|
|
960
|
+
"suspend_scheduled_job",
|
|
896
961
|
"try_to_load_from_cache",
|
|
962
|
+
"typer_factory",
|
|
897
963
|
"unlike",
|
|
898
964
|
"update_collection_item",
|
|
899
965
|
"update_collection_metadata",
|
|
900
966
|
"update_inference_endpoint",
|
|
901
967
|
"update_repo_settings",
|
|
902
|
-
"update_repo_visibility",
|
|
903
968
|
"update_webhook",
|
|
904
969
|
"upload_file",
|
|
905
970
|
"upload_folder",
|
|
906
971
|
"upload_large_folder",
|
|
972
|
+
"verify_repo_checksums",
|
|
907
973
|
"webhook_endpoint",
|
|
908
974
|
"whoami",
|
|
909
975
|
]
|
|
@@ -1018,6 +1084,12 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1018
1084
|
InferenceEndpointTimeoutError, # noqa: F401
|
|
1019
1085
|
InferenceEndpointType, # noqa: F401
|
|
1020
1086
|
)
|
|
1087
|
+
from ._jobs_api import (
|
|
1088
|
+
JobInfo, # noqa: F401
|
|
1089
|
+
JobOwner, # noqa: F401
|
|
1090
|
+
JobStage, # noqa: F401
|
|
1091
|
+
JobStatus, # noqa: F401
|
|
1092
|
+
)
|
|
1021
1093
|
from ._login import (
|
|
1022
1094
|
auth_list, # noqa: F401
|
|
1023
1095
|
auth_switch, # noqa: F401
|
|
@@ -1026,6 +1098,13 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1026
1098
|
logout, # noqa: F401
|
|
1027
1099
|
notebook_login, # noqa: F401
|
|
1028
1100
|
)
|
|
1101
|
+
from ._oauth import (
|
|
1102
|
+
OAuthInfo, # noqa: F401
|
|
1103
|
+
OAuthOrgInfo, # noqa: F401
|
|
1104
|
+
OAuthUserInfo, # noqa: F401
|
|
1105
|
+
attach_huggingface_oauth, # noqa: F401
|
|
1106
|
+
parse_huggingface_oauth, # noqa: F401
|
|
1107
|
+
)
|
|
1029
1108
|
from ._snapshot_download import snapshot_download # noqa: F401
|
|
1030
1109
|
from ._space_api import (
|
|
1031
1110
|
SpaceHardware, # noqa: F401
|
|
@@ -1050,6 +1129,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1050
1129
|
WebhooksServer, # noqa: F401
|
|
1051
1130
|
webhook_endpoint, # noqa: F401
|
|
1052
1131
|
)
|
|
1132
|
+
from .cli._cli_utils import typer_factory # noqa: F401
|
|
1053
1133
|
from .community import (
|
|
1054
1134
|
Discussion, # noqa: F401
|
|
1055
1135
|
DiscussionComment, # noqa: F401
|
|
@@ -1078,6 +1158,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1078
1158
|
)
|
|
1079
1159
|
from .file_download import (
|
|
1080
1160
|
_CACHED_NO_EXIST, # noqa: F401
|
|
1161
|
+
DryRunFileInfo, # noqa: F401
|
|
1081
1162
|
HfFileMetadata, # noqa: F401
|
|
1082
1163
|
get_hf_file_metadata, # noqa: F401
|
|
1083
1164
|
hf_hub_download, # noqa: F401
|
|
@@ -1098,6 +1179,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1098
1179
|
GitRefs, # noqa: F401
|
|
1099
1180
|
HfApi, # noqa: F401
|
|
1100
1181
|
ModelInfo, # noqa: F401
|
|
1182
|
+
Organization, # noqa: F401
|
|
1101
1183
|
RepoUrl, # noqa: F401
|
|
1102
1184
|
SpaceInfo, # noqa: F401
|
|
1103
1185
|
User, # noqa: F401
|
|
@@ -1110,6 +1192,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1110
1192
|
add_space_variable, # noqa: F401
|
|
1111
1193
|
auth_check, # noqa: F401
|
|
1112
1194
|
cancel_access_request, # noqa: F401
|
|
1195
|
+
cancel_job, # noqa: F401
|
|
1113
1196
|
change_discussion_status, # noqa: F401
|
|
1114
1197
|
comment_discussion, # noqa: F401
|
|
1115
1198
|
create_branch, # noqa: F401
|
|
@@ -1120,6 +1203,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1120
1203
|
create_inference_endpoint_from_catalog, # noqa: F401
|
|
1121
1204
|
create_pull_request, # noqa: F401
|
|
1122
1205
|
create_repo, # noqa: F401
|
|
1206
|
+
create_scheduled_job, # noqa: F401
|
|
1207
|
+
create_scheduled_uv_job, # noqa: F401
|
|
1123
1208
|
create_tag, # noqa: F401
|
|
1124
1209
|
create_webhook, # noqa: F401
|
|
1125
1210
|
dataset_info, # noqa: F401
|
|
@@ -1130,6 +1215,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1130
1215
|
delete_folder, # noqa: F401
|
|
1131
1216
|
delete_inference_endpoint, # noqa: F401
|
|
1132
1217
|
delete_repo, # noqa: F401
|
|
1218
|
+
delete_scheduled_job, # noqa: F401
|
|
1133
1219
|
delete_space_secret, # noqa: F401
|
|
1134
1220
|
delete_space_storage, # noqa: F401
|
|
1135
1221
|
delete_space_variable, # noqa: F401
|
|
@@ -1139,6 +1225,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1139
1225
|
duplicate_space, # noqa: F401
|
|
1140
1226
|
edit_discussion_comment, # noqa: F401
|
|
1141
1227
|
enable_webhook, # noqa: F401
|
|
1228
|
+
fetch_job_logs, # noqa: F401
|
|
1142
1229
|
file_exists, # noqa: F401
|
|
1143
1230
|
get_collection, # noqa: F401
|
|
1144
1231
|
get_dataset_tags, # noqa: F401
|
|
@@ -1146,23 +1233,27 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1146
1233
|
get_full_repo_name, # noqa: F401
|
|
1147
1234
|
get_inference_endpoint, # noqa: F401
|
|
1148
1235
|
get_model_tags, # noqa: F401
|
|
1236
|
+
get_organization_overview, # noqa: F401
|
|
1149
1237
|
get_paths_info, # noqa: F401
|
|
1150
1238
|
get_repo_discussions, # noqa: F401
|
|
1151
1239
|
get_safetensors_metadata, # noqa: F401
|
|
1152
1240
|
get_space_runtime, # noqa: F401
|
|
1153
1241
|
get_space_variables, # noqa: F401
|
|
1154
|
-
get_token_permission, # noqa: F401
|
|
1155
1242
|
get_user_overview, # noqa: F401
|
|
1156
1243
|
get_webhook, # noqa: F401
|
|
1157
1244
|
grant_access, # noqa: F401
|
|
1245
|
+
inspect_job, # noqa: F401
|
|
1246
|
+
inspect_scheduled_job, # noqa: F401
|
|
1158
1247
|
list_accepted_access_requests, # noqa: F401
|
|
1159
1248
|
list_collections, # noqa: F401
|
|
1160
1249
|
list_datasets, # noqa: F401
|
|
1161
1250
|
list_inference_catalog, # noqa: F401
|
|
1162
1251
|
list_inference_endpoints, # noqa: F401
|
|
1252
|
+
list_jobs, # noqa: F401
|
|
1163
1253
|
list_lfs_files, # noqa: F401
|
|
1164
1254
|
list_liked_repos, # noqa: F401
|
|
1165
1255
|
list_models, # noqa: F401
|
|
1256
|
+
list_organization_followers, # noqa: F401
|
|
1166
1257
|
list_organization_members, # noqa: F401
|
|
1167
1258
|
list_papers, # noqa: F401
|
|
1168
1259
|
list_pending_access_requests, # noqa: F401
|
|
@@ -1194,22 +1285,26 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1194
1285
|
request_space_storage, # noqa: F401
|
|
1195
1286
|
restart_space, # noqa: F401
|
|
1196
1287
|
resume_inference_endpoint, # noqa: F401
|
|
1288
|
+
resume_scheduled_job, # noqa: F401
|
|
1197
1289
|
revision_exists, # noqa: F401
|
|
1198
1290
|
run_as_future, # noqa: F401
|
|
1291
|
+
run_job, # noqa: F401
|
|
1292
|
+
run_uv_job, # noqa: F401
|
|
1199
1293
|
scale_to_zero_inference_endpoint, # noqa: F401
|
|
1200
1294
|
set_space_sleep_time, # noqa: F401
|
|
1201
1295
|
space_info, # noqa: F401
|
|
1202
1296
|
super_squash_history, # noqa: F401
|
|
1297
|
+
suspend_scheduled_job, # noqa: F401
|
|
1203
1298
|
unlike, # noqa: F401
|
|
1204
1299
|
update_collection_item, # noqa: F401
|
|
1205
1300
|
update_collection_metadata, # noqa: F401
|
|
1206
1301
|
update_inference_endpoint, # noqa: F401
|
|
1207
1302
|
update_repo_settings, # noqa: F401
|
|
1208
|
-
update_repo_visibility, # noqa: F401
|
|
1209
1303
|
update_webhook, # noqa: F401
|
|
1210
1304
|
upload_file, # noqa: F401
|
|
1211
1305
|
upload_folder, # noqa: F401
|
|
1212
1306
|
upload_large_folder, # noqa: F401
|
|
1307
|
+
verify_repo_checksums, # noqa: F401
|
|
1213
1308
|
whoami, # noqa: F401
|
|
1214
1309
|
)
|
|
1215
1310
|
from .hf_file_system import (
|
|
@@ -1244,10 +1339,13 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1244
1339
|
ChatCompletionInputFunctionDefinition, # noqa: F401
|
|
1245
1340
|
ChatCompletionInputFunctionName, # noqa: F401
|
|
1246
1341
|
ChatCompletionInputGrammarType, # noqa: F401
|
|
1247
|
-
|
|
1342
|
+
ChatCompletionInputJSONSchema, # noqa: F401
|
|
1248
1343
|
ChatCompletionInputMessage, # noqa: F401
|
|
1249
1344
|
ChatCompletionInputMessageChunk, # noqa: F401
|
|
1250
1345
|
ChatCompletionInputMessageChunkType, # noqa: F401
|
|
1346
|
+
ChatCompletionInputResponseFormatJSONObject, # noqa: F401
|
|
1347
|
+
ChatCompletionInputResponseFormatJSONSchema, # noqa: F401
|
|
1348
|
+
ChatCompletionInputResponseFormatText, # noqa: F401
|
|
1251
1349
|
ChatCompletionInputStreamOptions, # noqa: F401
|
|
1252
1350
|
ChatCompletionInputTool, # noqa: F401
|
|
1253
1351
|
ChatCompletionInputToolCall, # noqa: F401
|
|
@@ -1300,6 +1398,10 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1300
1398
|
ImageToTextInput, # noqa: F401
|
|
1301
1399
|
ImageToTextOutput, # noqa: F401
|
|
1302
1400
|
ImageToTextParameters, # noqa: F401
|
|
1401
|
+
ImageToVideoInput, # noqa: F401
|
|
1402
|
+
ImageToVideoOutput, # noqa: F401
|
|
1403
|
+
ImageToVideoParameters, # noqa: F401
|
|
1404
|
+
ImageToVideoTargetSize, # noqa: F401
|
|
1303
1405
|
ObjectDetectionBoundingBox, # noqa: F401
|
|
1304
1406
|
ObjectDetectionInput, # noqa: F401
|
|
1305
1407
|
ObjectDetectionOutputElement, # noqa: F401
|
|
@@ -1383,13 +1485,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1383
1485
|
ZeroShotObjectDetectionOutputElement, # noqa: F401
|
|
1384
1486
|
ZeroShotObjectDetectionParameters, # noqa: F401
|
|
1385
1487
|
)
|
|
1386
|
-
from .
|
|
1387
|
-
from .
|
|
1388
|
-
KerasModelHubMixin, # noqa: F401
|
|
1389
|
-
from_pretrained_keras, # noqa: F401
|
|
1390
|
-
push_to_hub_keras, # noqa: F401
|
|
1391
|
-
save_pretrained_keras, # noqa: F401
|
|
1392
|
-
)
|
|
1488
|
+
from .inference._mcp.agent import Agent # noqa: F401
|
|
1489
|
+
from .inference._mcp.mcp_client import MCPClient # noqa: F401
|
|
1393
1490
|
from .repocard import (
|
|
1394
1491
|
DatasetCard, # noqa: F401
|
|
1395
1492
|
ModelCard, # noqa: F401
|
|
@@ -1407,10 +1504,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1407
1504
|
ModelCardData, # noqa: F401
|
|
1408
1505
|
SpaceCardData, # noqa: F401
|
|
1409
1506
|
)
|
|
1410
|
-
from .repository import Repository # noqa: F401
|
|
1411
1507
|
from .serialization import (
|
|
1412
1508
|
StateDictSplit, # noqa: F401
|
|
1413
|
-
get_tf_storage_size, # noqa: F401
|
|
1414
1509
|
get_torch_storage_id, # noqa: F401
|
|
1415
1510
|
get_torch_storage_size, # noqa: F401
|
|
1416
1511
|
load_state_dict_from_file, # noqa: F401
|
|
@@ -1418,7 +1513,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1418
1513
|
save_torch_model, # noqa: F401
|
|
1419
1514
|
save_torch_state_dict, # noqa: F401
|
|
1420
1515
|
split_state_dict_into_shards_factory, # noqa: F401
|
|
1421
|
-
split_tf_state_dict_into_shards, # noqa: F401
|
|
1422
1516
|
split_torch_state_dict_into_shards, # noqa: F401
|
|
1423
1517
|
)
|
|
1424
1518
|
from .serialization._dduf import (
|
|
@@ -1428,6 +1522,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1428
1522
|
read_dduf_file, # noqa: F401
|
|
1429
1523
|
)
|
|
1430
1524
|
from .utils import (
|
|
1525
|
+
ASYNC_CLIENT_FACTORY_T, # noqa: F401
|
|
1526
|
+
CLIENT_FACTORY_T, # noqa: F401
|
|
1431
1527
|
CachedFileInfo, # noqa: F401
|
|
1432
1528
|
CachedRepoInfo, # noqa: F401
|
|
1433
1529
|
CachedRevisionInfo, # noqa: F401
|
|
@@ -1435,12 +1531,15 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1435
1531
|
CorruptedCacheException, # noqa: F401
|
|
1436
1532
|
DeleteCacheStrategy, # noqa: F401
|
|
1437
1533
|
HFCacheInfo, # noqa: F401
|
|
1438
|
-
HfFolder, # noqa: F401
|
|
1439
1534
|
cached_assets_path, # noqa: F401
|
|
1440
|
-
|
|
1535
|
+
close_session, # noqa: F401
|
|
1441
1536
|
dump_environment_info, # noqa: F401
|
|
1537
|
+
get_async_session, # noqa: F401
|
|
1442
1538
|
get_session, # noqa: F401
|
|
1443
1539
|
get_token, # noqa: F401
|
|
1540
|
+
hf_raise_for_status, # noqa: F401
|
|
1444
1541
|
logging, # noqa: F401
|
|
1445
1542
|
scan_cache_dir, # noqa: F401
|
|
1543
|
+
set_async_client_factory, # noqa: F401
|
|
1544
|
+
set_client_factory, # noqa: F401
|
|
1446
1545
|
)
|